package doxygenxml.compound;

/**********************************************************************************************
 * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
 * See www.liquid-technologies.com for product details.
 *
 * Please see products End User License Agreement for distribution permissions.
 *
 * WARNING: THIS FILE IS GENERATED
 * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
 *
 * Generation  :  by Liquid XML Data Binder 18.0.5.9988
 * Using Schema: CENSORED
 **********************************************************************************************/

// <summary>
// </summary>
public enum DoxHighlightClass {
	Comment,
	Normal,
	Preprocessor,
	Keyword,
	Keywordtype,
	Keywordflow,
	Stringliteral,
	Charliteral,
	Vhdlkeyword,
	Vhdllogic,
	Vhdlchar,
	Vhdldigit;

	// Converts a DoxHighlightClass enumeration to a string (suitable for the XML document)
	public static String DoxHighlightClassToString(doxygenxml.compound.DoxHighlightClass enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		switch(enumValue)
		{
		case Comment:
	    	return "comment";
		case Normal:
	    	return "normal";
		case Preprocessor:
	    	return "preprocessor";
		case Keyword:
	    	return "keyword";
		case Keywordtype:
	    	return "keywordtype";
		case Keywordflow:
	    	return "keywordflow";
		case Stringliteral:
	    	return "stringliteral";
		case Charliteral:
	    	return "charliteral";
		case Vhdlkeyword:
	    	return "vhdlkeyword";
		case Vhdllogic:
	    	return "vhdllogic";
		case Vhdlchar:
	    	return "vhdlchar";
		case Vhdldigit:
	    	return "vhdldigit";
		default:
	    	throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxHighlightClass [" + enumValue.toString() + "]");
		}
	}
	
	// 	Converts a string to a DoxHighlightClass enumeration
	public static DoxHighlightClass DoxHighlightClassFromString(String enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		String enumCollapsedValue = com.liquid_technologies.ltxmllib18.WhitespaceUtils.collapse(enumValue);
		if (enumCollapsedValue.equals("comment"))
			return Comment;
		else if (enumCollapsedValue.equals("normal"))
			return Normal;
		else if (enumCollapsedValue.equals("preprocessor"))
			return Preprocessor;
		else if (enumCollapsedValue.equals("keyword"))
			return Keyword;
		else if (enumCollapsedValue.equals("keywordtype"))
			return Keywordtype;
		else if (enumCollapsedValue.equals("keywordflow"))
			return Keywordflow;
		else if (enumCollapsedValue.equals("stringliteral"))
			return Stringliteral;
		else if (enumCollapsedValue.equals("charliteral"))
			return Charliteral;
		else if (enumCollapsedValue.equals("vhdlkeyword"))
			return Vhdlkeyword;
		else if (enumCollapsedValue.equals("vhdllogic"))
			return Vhdllogic;
		else if (enumCollapsedValue.equals("vhdlchar"))
			return Vhdlchar;
		else if (enumCollapsedValue.equals("vhdldigit"))
			return Vhdldigit;
		else
			// ##HAND_CODED_BLOCK_START ID="Default Enum doxygenxml.compound.DoxHighlightClass"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxHighlightClass [" + enumValue + "]");
			// ##HAND_CODED_BLOCK_END ID="Default Enum doxygenxml.compound.DoxHighlightClass"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
	}
}

